#include <QApplication>
#include <QTextCodec>
#include <QFile>
#include <QTranslator>
#include "notifywnd.h"
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf-8"));
    auto cssPath = QApplication::applicationDirPath() + "/skin/styleSheet.css";
    auto qmFilePath = QApplication::applicationDirPath() + "/translation/zh_CN.qm";
    QTranslator trans;
    if (trans.load(qmFilePath)) {
        a.installTranslator(&trans);
    }
    QFile cssFile(cssPath);
    if (cssFile.open(QFile::ReadOnly)) {
        qApp->setStyleSheet(cssFile.readAll());
        cssFile.close();
    }

    NotifyWnd wnd;
    return a.exec();
}
